package com.itheima.ydd.controller;

import com.itheima.ydd.common.R;
import com.itheima.ydd.service.ISysConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;



/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2022-05-22
 */
@RestController
@RequestMapping("/sys_config")
@CrossOrigin
@Slf4j
public class SysConfigController {

    @Autowired
    private ISysConfigService sysConfigService;

    @GetMapping("/all")
    public R getAll(){
      return   sysConfigService.getAll();
    }
}
